package com.rd.student.jiaji.class3.wangyanbo.task27;

import java.io.BufferedReader;
import java.io.FileReader;

public class TestBufferedReader {
    public static void main(String[] args) throws Exception{
        BufferedReader reader = new BufferedReader(
                new FileReader("stream.txt"));
        String line = null;
        while (true){
            line = reader.readLine();
            if (line == null) break;
            System.out.println(line);
        }
        reader.close();
    }
}
